package org.dromara.bean.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serial;

/**
 * 医院科室对象 his_dep
 *
 * @author Lion Li
 * @date 2024-10-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("his_dep")
public class HisDep extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 标题
     */
    private String title;

    /**
     * 父级id
     */
    private Long parentId;



    private String photo;
    /**
     * 是否展示
     */
    private String shows;

    /**
     * 排序顺序
     */

    @ExcelProperty(value = "科室电话")
    private String mobile;

    private String sorts;

    @ExcelProperty(value = "科室介绍")
    private String intro;
    /**
     * 删除表示
     */
    @TableLogic
    private String delFlag;

    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "photo")
    @TableField(exist = false)
    private String photoUrl;

}
